package com.yfp.device.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yfp.device.domain.Combo;
import com.yfp.device.mapper.ComboMapper;
import com.yfp.device.service.ComboService;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 *
 * @description 针对表【combo(套餐表)】的数据库操作Service实现
 * @createDate 2024-06-27 14:39:34
 */
@Service
public class ComboServiceImpl extends ServiceImpl<ComboMapper, Combo> implements ComboService {

    @Resource
    private ComboMapper comboMapper;

    /**
     * 根据套餐id列表查询套餐信息
     *
     * @param packageIds
     * @return
     */
    @Override
    public List<Combo> listByPackageIds(List<String> packageIds) {
        List<Combo> combos = comboMapper.selectBatchIds(packageIds);
        return combos;
    }
}




